<template>
	<view class="body" :style="'height:'+ this.h+'rpx'">
		<!-- <uni-calendar :insert="true" :lunar="true" :start-date="'2019-3-2'" :end-date="'2019-5-20'" /> -->
		<uni-calendar :insert="true" :lunar="true" :start-date="'2019-3-2'" :end-date="'2019-5-20'"></uni-calendar>
		<view @click="signIn" class="my-content-1">
			<view class="my-content-item-1">
				<image src="../../../static/icon/signIn.png" style="width: 70rpx;height: 70rpx;margin-right: 20rpx;">
				</image>
				<view>签到</view>
			</view>
		</view>

		<view @click="toChatroom" class="my-content-1">
			<view class="my-content-item-1">
				<image src="../../../static/icon/Group.png" style="width: 70rpx;height: 70rpx;margin-right: 20rpx;">
				</image>
				<view>课群</view>
			</view>
		</view>

	</view>
</template>

<script setup>
	export default {
		data() {
			return {
				id: Number,
				h: null
			}
		},
		methods: {
			signIn() {
				uni.showToast({
					title: "签到成功"
				})
			},
			toChatroom() {
				uni.navigateTo({
					url:"./chatroom/chatroom"
				})
			}
		},
		onLoad() {
			uni.getSystemInfo({
				success: (res) => {
					this.h = res.windowHeight * 2;
				}
			})
		},
	}
</script>

<style lang="scss" scoped>
	.body {
		background-color: #e0e9fa
	}

	.my-content-1 {
		margin: 40rpx 20rpx;
		padding: 0 20rpx;
		background-color: #fff;
		border-radius: 10px;
	}

	.my-content-item-1 {
		font-size: 34rpx;
		display: flex;
		align-items: center;
		padding: 15rpx 0;
	}
</style>
